<html>  
<head>
<title>json test</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
var flags = {
    "MESSAGE_FLAG":1,
    "MY_POST_FLAG":2,
    "FRIEND_POST_FLAG":4,
    "MY_COMMENT_ON_STATUS_FLAG":8,
    "MY_COMMENT_ON_LINK_FLAG":16,
    "MY_COMMENT_ON_NOTE_FLAG":32,
    "MY_COMMENT_ON_PHOTO_FLAG":64,
    "FRIEND_COMMENT_ON_STATUS_FLAG":128,
    "FRIEND_COMMENT_ON_LINK_FLAG":256,
    "FRIEND_COMMENT_ON_NOTE_FLAG":512,
    "FRIEND_COMMENT_ON_PHOTO_FLAG":1024,
    "MY_LIKE_ON_STATUS_FLAG":2048,
    "MY_LIKE_ON_LINK_FLAG":4096,
    "MY_LIKE_ON_NOTE_FLAG":8192,
    "MY_LIKE_ON_PHOTO_FLAG":16384,
    "FRIEND_LIKE_ON_STATUS_FLAG":32768,
    "FRIEND_LIKE_ON_LINK_FLAG":65536,
    "FRIEND_LIKE_ON_NOTE_FLAG":131072,
    "FRIEND_LIKE_ON_PHOTO_FLAG":262144
};

$.each(flags, function(k, v){
    console.log(k + ":" + flags[k]);
    
});


</script>
</head>
<body>
</body>
</html>